home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 4 / USEnet 4.45 < prev    next >
Encoding:
Text File  |  1988-06-15  |  26.2 KB  |  769 lines  |  [TEXT/ttxt]

  1. 19-Apr-88 17:10:15-PDT,27540;000000000000
  2. Return-Path: <usenet-mac-request@RELAY.CS.NET>
  3. Received: from RELAY.CS.NET by SUMEX-AIM.Stanford.EDU with TCP; Tue, 19 Apr 88 17:07:11 PDT
  4. Received: from relay2.cs.net by RELAY.CS.NET id aa13473; 19 Apr 88 17:46 EDT
  5. Received: from relay.cs.net by RELAY.CS.NET id aa24145; 19 Apr 88 17:35 EDT
  6. Received: from sdr.slb.com by RELAY.CS.NET id af24118; 19 Apr 88 17:29 EDT
  7. Date: Tue, 19 Apr 88 17:19 EDT
  8. From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
  9. Subject: Usenet Mac Digest V4 #45
  10. To: usenet-mac@RELAY.CS.NET, PIERCE%HDS@sdr.slb.com
  11. X-VMS-To: in%"usenet-mac@relay.cs.net",in%"PIERCE%HDS@SDR.SLB.COM"
  12.  
  13. Date: Tue 19 Apr 88 17:18:54-GMT
  14. From: Jeff Shulman <SHULMAN@SDR>
  15. Subject: Usenet Mac Digest V4 #45
  16. To: Usenet-List: ;
  17. Message-ID: <577473534.0.SHULMAN@SDR>
  18. Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR>
  19.  
  20. Usenet Mac Digest     Friday, April 1, 1988          Volume 4 : Issue 45 
  21.  
  22. Today's Topics:
  23.      Unmount Floppy under MF
  24.      Re: Polygon question (3 messages)
  25.      Re: Questions about MacII
  26.      Re: Dialog Boxes with Scrollable region
  27.      Alternatives to Imagewriters?
  28.      Re: DiskTools Plus comments
  29.      Protection for folders...
  30.      Large Capacity Disk Drives for Mac II ...
  31.      getting your ImageWriter (or other) printhead repaired
  32.      GATT declares U.S. - Japan chip pact illegal
  33.      Re: Faster desktop rebuilding info from MACworld
  34.      Re: Need opinions on Orange Micro Macintosh Grappler interface
  35.      Re: turning off instruction cache on MA
  36.      Re: ShowInit Source or pointer wanted
  37.      INIT Crashes-- Why?
  38.      When to draw rect around List in DLOG
  39.      Monitoring idle time
  40.  
  41. ---------------------------------------------------------------------- 
  42.  
  43. From: alan@metasoft.UUCP (Alan Epstein)
  44. Subject: Unmount Floppy under MF
  45. Date: 25 Mar 88 20:57:57 GMT
  46. Organization: Meta Software Corporation, Cambridge MA
  47.  
  48. a querie for FileMgr fans:
  49.  
  50. TN180 says that under system 4.2/6.0, calls to UnmountVol() can return
  51. error fBsyErr (-47), since, especially under Multifinder, files on this
  52. volume may be open/busy from another application. this is definitely the
  53. case with DeskTop under multifinder. TN180 goes on to say that it knows
  54. about the DeskTop file being open, and if that is the only file that is
  55. open, it unmounts and DOESN'T return an error.
  56.  
  57. unfortunately i have not found this to be the case. i reduced my code so
  58. that it now accepts a disk insert event, and does nothing but Unmounts
  59. the floppy, and i still get the fBsyErr. i can see the disk appear on
  60. the finder desktop, and after unmounting (with this error returned), i
  61. see it grayed, but still there.
  62.  
  63. what else is there to be done?
  64.  
  65.  
  66. PLEASE SEND REPLIES VIA E-MAIL. i'll post a summary if i get interesting
  67. responses.
  68.  
  69. thanks.
  70.  
  71. -alan      alan%metasoft@bbn.com  ||  {bbn,uunet}!metasoft!alan
  72.                                   ||   alan@metasoft.uucp
  73.  
  74.  
  75. ------------------------------
  76.  
  77. From: gillies@uiucdcsp.cs.uiuc.edu
  78. Subject: Re: Polygon question
  79. Date: 25 Mar 88 23:40:00 GMT
  80.  
  81.  
  82. If you want to count the bits in a bitmap, it's going to be slow, but
  83. you can be clever and speed things up quite a bit
  84.  
  85. - 1.  Loop through all the computer words in the bitmap.  Use the
  86. largest word-size possible (32-bits).  Skip over words that are zero.
  87.  
  88. - 2.  For non-zero N-bit (32-bit) words, you can count the bits in
  89. parallel using LogN (5) steps.  For details, see "Combinatorial
  90. Algorithms", chapter 1, but Reingold, Nievergelt, Deo.  Briefly, in C,
  91. it might look like:
  92.  
  93.     bitsum(X)
  94.     long unsigned X;
  95.     {    long unsigned Y, Z;
  96.     #define Mask1        025252525252    /* every other bit */
  97.     #define NotMask1    ~Mask1
  98.     #define Mask2        031463146314    /* 2 bits on, 2 bits off */
  99.     #define NotMask2    ~Mask2
  100.     ...
  101.         Y = (X & Mask1) >> 1;        /* step 1 */
  102.             Z = (X & NotMask1);
  103.         X = Y + Z;
  104.  
  105.         Y = (X & Mask2) >> 2;        /* step 2 */
  106.         Z = (X & NotMask2);
  107.         X = Y + Z;
  108.         /* step 3:  4 bits on, 4 bits off, shift by 4 */
  109.         /* step 4:  8 bits on, 8 bits off, shift by 8 */
  110.         /* step 5: 16 bits on, 16 bits off, shift by 16 -- Done */
  111.  
  112.         /* for efficiency, don't use vars Y & Z, compress this
  113.            subroutine into 5 assignments to the X variable, e.g.
  114.            X = (X & NotMask1) + ((X & Mask1) >> 1);
  115.          */
  116.     }
  117.  
  118. Essentially, you are adding up all the bits in parallel.  The first step
  119. does 16 single-bit adds in parallel.  The second step does 8 double-bit
  120. adds in parallel.  The third step does 4 quad-bit adds in parallel, and
  121. so on.
  122.  
  123. Don Gillies {ihnp4!uiucdcs!gillies} U of Illinois
  124.             {gillies@p.cs.uiuc.edu}
  125.  
  126.  
  127. ------------------------------
  128.  
  129. From: guido@cwi.nl (Guido van Rossum)
  130. Subject: Counting bits (was Re: Polygon question)
  131. Date: 26 Mar 88 18:52:32 GMT
  132. Organization: The Royal Society for Prevention of Cruelty to Amoebae
  133.  
  134. Counting bits is better done by using a look-up table.  I did a quick
  135. test of the code below and found it was 25 to 30 (!) times faster than
  136. the LogN method explained by Don Gilles.  Similar tricks are useful for
  137. any code that looks at data one bit at a time (see the fast CRC
  138. computing code in xbin version 3.4a that I once posted on the net(though
  139. I didn't write it)).
  140.  
  141. Guido van Rossum, Centre for Mathematics and Computer Science (CWI),
  142. Amsterdam guido@cwi.nl or mcvax!guido or (from ARPAnet)
  143. guido%cwi.nl@uunet.uu.net
  144.  
  145.     static char nbits[256]= {
  146.     #include "nbits.h" /* See below */
  147.     };
  148.  
  149.     /* Count one-bits in n-byte array p. */
  150.  
  151.     long
  152.     bitcount(p, n)
  153.         unsigned char *p;
  154.         int n;
  155.     {
  156.         long total= 0;
  157.         while (--n >= 0)
  158.             total += nbits[*p++];
  159.         return total;
  160.     }
  161.  
  162. where the file "bits.h" is generated by the following program:
  163.  
  164.     main()
  165.     {
  166.         int i;
  167.         for (i= 0; i < 256; ++i) {
  168.             int n= 0, j= i;
  169.             while (j != 0) {
  170.                 if (j&1) ++n;
  171.                 j= (j&~1) >> 1;
  172.             }
  173.             printf("%d, ", n);
  174.             if (i%16 == 15)
  175.                 printf("\n");
  176.         }
  177.     }
  178.  
  179.  
  180. ------------------------------
  181.  
  182. From: guido@cwi.nl (Guido van Rossum)
  183. Subject: Re: Counting bits (was Re: Polygon question)
  184. Date: 26 Mar 88 20:07:38 GMT
  185. Organization: The Royal Society for Prevention of Cruelty to Amoebae
  186.  
  187. Well, I jumped too fast.  My method is faster, but by a factor of 1.5 or
  188. 2.
  189.  
  190. BTW, here's the C code for Don's code I used:
  191.  
  192.     long alt_bcount(cp, n)
  193.         unsigned char *cp;
  194.         int n;
  195.     {
  196.         long total= 0;
  197.         unsigned long *p= (unsigned long *)cp;
  198.  
  199.         n /= sizeof(long);
  200.  
  201.         while (--n >= 0) {
  202.             register unsigned long x= *p++;
  203.             if (x == 0)
  204.                 continue;
  205.             x= (x & 0x55555555) + ((x>>1) & 0x55555555);
  206.             x= (x & 0x33333333) + ((x>>2) & 0x33333333);
  207.             x= (x & 0x0f0f0f0f) + ((x>>4) & 0x0f0f0f0f);
  208.             x= (x & 0x00ff00ff) + ((x>>8) & 0x00ff00ff);
  209.             total += (x & 0x0000ffff) + ((x>>16) & 0x0000ffff);
  210.         }
  211.  
  212.         return total;
  213.     }
  214. -- 
  215. Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam
  216. guido@cwi.nl or mcvax!guido or (from ARPAnet) guido%cwi.nl@uunet.uu.net
  217.  
  218.  
  219. ------------------------------
  220.  
  221. From: jasst3@cisunx.UUCP (Jeffrey A. Sullivan)
  222. Subject: Re: Questions about MacII
  223. Date: 28 Mar 88 19:09:02 GMT
  224. Organization: Univ. of Pittsburgh, Comp & Info Sys
  225.  
  226. In article <755@stride.Stride.COM>, wnh@Stride.COM (Wilbur Harvey)
  227. writes:
  228. > Is there anyone who has, or knows of the following items for the Mac 
  229. >     Utility to allow you to read disk blocks, modify disk blocks, and
  230. >         the same for system ram.
  231. I believe MacSnoop will do this.  There is a new Mac II compatible
  232. version which has come out in the past 2 months.  It allows DISK
  233. editing.  It takes the place of FEDIT which went commericial.
  234.  
  235. >     Utility to clear whatever gets changed when the system bombs so that
  236. >         you can use your hard disk again. Does any one know what it is
  237. >         that gets trashed.
  238. With CMS HDs, you get a ZapPRAM util which clears parameter ram (the
  239. part of ram that gets clobbered).  However, you can do this yourself by
  240. holding down shift-opt-cmd and choosing the control panel from the apple
  241. menu. The _real_ fix is an INIT that you put in your system file that
  242. keeps the AUX part of PRAM (so I've heard) from clobbering your disk
  243. stuff after bombs. I don't know what it does, but it works like a charm!
  244.  It's on MACSERVE@PUCC and info-mac at sumex.  I posted it to
  245. comp.binaries.mac, but I don't know if it got put up yet.
  246.  
  247. >     Is there a Kermit for the Mac II.
  248. I think the latest version of MacKermit is not fully debugged, and I
  249. don't know if it is Mac II compatible.  To do simple file xfers with
  250. kermit, use any decent commerical comm pkg, and it'll have kermit.  I
  251. use and love VersaTerm, which has a great VT100 emulatiobn to boot.
  252.  
  253. >     Is there a printer driver for an HP paintjet for the Mac II. 
  254. I _think_ that there is some kind of grappler+ interface for the mac
  255. that has HPxxxjet drivers with it.
  256.  
  257. >     Are there any recommendations for a good "C", or "C++" programming
  258. >         environment for the Mac II.
  259. LightSpeedC by Think technologies.  It is absolutely WONDERFUL!  Fast
  260. program turnaround and an enjoyable integrated environment.  A new
  261. upgrade (3.0) will be out soom with source-level debugger and "other
  262. goodies."
  263.  
  264. -- 
  265. ..........................................................................
  266. Jeffrey Sullivan              | University of Pittsburgh
  267. jas@cadre.dsl.pittsburgh.edu          | Intelligent Systems Studies Program
  268. jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student
  269.  
  270.  
  271. ------------------------------
  272.  
  273. From: dwb@Apple.COM (David W. Berry)
  274. Subject: Re: Dialog Boxes with Scrollable region
  275. Date: 28 Mar 88 19:27:01 GMT
  276. Organization: Apple Computer Inc, Cupertino, CA
  277.  
  278. In article <170800002@inmet> lipsett@inmet.UUCP writes:
  279. >
  280. >
  281. >I am trying to build a dialog box with a scrollable region embedded in
  282. >it, similar to the SF Getfile box or the MS Word help box.  It all
  283. >looked so straightforward...just create a UserItem and do the obvious
  284. >thing.
  285. >
  286. >So, what obvious thing am I missing?  Please reply by E-mail; I will
  287. >summarize for the net if there are enough responses.  Thanks in
  288. >advance.
  289.     The solution, perhaps not obvious, is to go ahead and use a filter
  290. proc.  The filter proc gets the event and can do a FindControl to
  291. determine if it's in the scroll bar or not.  If it is, call TrackControl
  292. as appropriate, remembering that thumbs and other parts work
  293. differently.
  294. >
  295. >Roger Lipsett
  296. >{ihnp4,mirror,sun}!inmet!lipsett
  297. -- 
  298. David W. Berry
  299. dwb@Delphi    dwb@apple.com    973-5168@408.MaBell
  300. Disclaimer: Apple doesn't even know I have an opinion and certainly
  301.     wouldn't want if they did.
  302.  
  303.  
  304. ------------------------------
  305.  
  306. From: hellerst@husc8.HARVARD.EDU (Joe Hellerstein)
  307. Subject: Alternatives to Imagewriters?
  308. Date: 29 Mar 88 15:37:29 GMT
  309. Organization: Harvard Univ. Science Center
  310.  
  311. Is there an inexpensive, practical alternative to the (rather
  312. overpriced) Imagwriter II printer for a Mac Plus?  I read (in an Apple
  313. ][ magazine) about an Imagewriter clone, and there has also been
  314. discussion here on the net about using other printers with appropriate
  315. software.  Is this a viable alternative?  Anybody have experience with
  316. this?
  317.  
  318. Thanks in advance.
  319.  
  320. Joe Hellerstein
  321.  
  322.  
  323. ------------------------------
  324.  
  325. From: gross@watdcsu.waterloo.edu (Evan Gross [Sys Des])
  326. Subject: Re: DiskTools Plus comments
  327. Date: 29 Mar 88 05:00:57 GMT
  328. Organization: U. of Waterloo, Ontario
  329.  
  330. In response to Henry Greenside's article, I'd like to say that the
  331. upgrade he desires (launching under multifinder) has been available for
  332. a few weeks now from Electronic Arts (for a shipping fee only), and in
  333. the form of an updater program that will update a DiskTools Plus version
  334. 1.0 to the MF-compatible 1.01 available on Compuserve in the MACPRO
  335. forum data libraries. Free for the downloading.
  336.  
  337. In addition to allowing launching under MF, there are some other feature
  338. additions, for example the ability to show a file's real icon (as would
  339. be seen in the Finder) in the DiskTools II Get Info dialog. Other
  340. improvements include better handling of multiple-monitor setups on the
  341. Mac II. A full list is included with the updater.
  342.  
  343. As for your comment about the DiskTools trash function, well,  let it be
  344. know that I tried it both ways when the product was in beta, and not one
  345. tester (there were 15 or so) wished for the default to be Cancel instead
  346. of Trash. I had to go with the majority's wishes...
  347. -- 
  348. Hope this info helps,
  349. Evan Gross
  350. Author of BatteryPak/DiskTools Plus
  351.  
  352.  
  353. ------------------------------
  354.  
  355. From: mmccann@hubcap.UUCP (Mike McCann)
  356. Subject: Protection for folders...
  357. Date: 29 Mar 88 15:52:26 GMT
  358. Organization: Clemson University, Clemson, SC
  359.  
  360. Does anyone know if there are any software packages that write-protect
  361. folders on the Mac?  I would like to protect the folders so that the
  362. application in the folder can be run (and other files in there can be
  363. accessed) but none can be written to or deleted and no other files can
  364. be put into the folder.
  365.  
  366. If you have any suggestions, let me know...Thanks...
  367.  
  368. Mike McCann 
  369.  
  370.  
  371. ------------------------------
  372.  
  373. From: luciw@kodak.UUCP (bill luciw)
  374. Subject: Large Capacity Disk Drives for Mac II ...
  375. Date: 29 Mar 88 16:10:01 GMT
  376. Organization: Eastman Kodak Co., Rochester, NY
  377.  
  378. We are looking for a large capacity (~300 Meg), fast (<20ms access),
  379. external disk drive for the Mac II.  It needs to be reliable, quiet, and
  380. aesthetically pleasing.  So far, I have come up with two candidates:
  381.  
  382. 1) Data Cell 290          290MB     16.5 ms       Giga Cell/NuData
  383.  
  384. 2) Hammer300              300MB     16.5 ms?      FWB Inc.
  385.  
  386. Actually, I've never seen the Hammer300, but it is intriguing if it
  387. exists. Any comments/suggestions/warnings?
  388.  
  389. Thanks in advance.
  390. -- 
  391. Bill Luciw / Technology Leader        ATTnet:  (716) 477-5384
  392. Knowledge-Based Systems Group           UUCP: ...rutgers!rochester!kodak!luciw
  393. Eastman Kodak Company                   ARPA: luciw@cs.rochester.edu
  394.  "Don't take life seriously, you'll never get out of it alive!"  -- Bugs Bunny
  395.  
  396.  
  397. ------------------------------
  398.  
  399. From: kraut@ut-emx.UUCP (Werner Uhrig)
  400. Subject: getting your ImageWriter (or other) printhead repaired
  401. Date: 29 Mar 88 14:11:10 GMT
  402. Organization: The University of Texas at Austin, Austin, Texas
  403.  
  404. I've been meaning to pass on this bit of useful info for quite a while
  405. now:
  406.  
  407. A couple of months ago I happened to visit one of the several little
  408. hardware repair shops we have here in town which I knew used to repair
  409. and upgrade Mac-hardware without Apple's help (and a lot cheaper at
  410. that) ...
  411.  
  412. and I found that they had "discovered" a market niche which keeps them
  413. more than busy:  repairing printheads of all kinds.  knowing what the
  414. price of my IW1 printhead was billed at (to Apple - under warranty :-),
  415. I think, you'll agree with me that the contents of their flyer (which I
  416. just rediscovered), is worth telling you about:
  417.  
  418.     3-5 DAY TURNAROUND
  419.     6 MONTH WARRANTY
  420.  
  421.     Apple ImageWriter-1        $32
  422.     Epson 80,100(mx,fx,rx)        $38
  423.     NEC 8023,24,25,27        $32
  424.     OkiData 82-84, 92,93        $62
  425.     OkiData 182,183,192,193        $40
  426.  
  427. (this flyer lists a lot more types - the flyer is dated Sept 1, 87)
  428.  
  429. Printheads not mentioned will be taken on a free evaluation basis.
  430.  
  431. We buy printheads, any type.
  432.  
  433. Shipping information: All Items sent in must have an RMA number. return
  434. by UPS COD 2nd day air.  Terms only after approval of credit.
  435.  
  436.         IMPACT Printhead Refurbishing Services,
  437.         1536 E. Anderson Lane, Suite A,
  438.         Austin TX 78752.
  439.         (512) 832-9151
  440.         1-(800) 445-7303 (dial tone) 4323
  441.  
  442. <end of quoted flyer>
  443.  
  444. Disclaimers:  I'm only an occasional customer.
  445. -- 
  446. (prefered mailbox:)        werner%rascal@sally.utexas.edu
  447.                 ....!ut-sally!rascal.ics.utexas.edu!werner
  448. (if rascal is unreachable:)    werner@astro@sally.utexas.edu
  449.                 werner@utastro.uucp
  450.  
  451.  
  452. ------------------------------
  453.  
  454. From: craig@unicus.UUCP (Craig D. Hubley)
  455. Subject: GATT declares U.S. - Japan chip pact illegal
  456. Date: 28 Mar 88 18:20:55 GMT
  457. Organization: Unicus Software Inc., Toronto, Ont.
  458.  
  459.  
  460. The price-fixing deal that the U.S. forced on Japan to keep its own chip
  461. manufacturers (TI and Micron) in business, that has forced chip prices
  462. to four times their level (here, at least!) of ten months ago, has been 
  463. declared illegal by GATT, the General Agreement on Trade and Tariffs,
  464. the international body governing world trade.  The gist of it is that
  465. the pact has forced chip prices up, and supplies down, in Europe and
  466. Canada.
  467.  
  468. The complete text of the Financial Times article has been posted to
  469. comp.misc
  470.  
  471. I apologize for the massive cross-posting (usually the mark of a flame
  472. :-)), but microcomputer and electronics consumers should be aware of
  473. this, the  last paragraph of the article:
  474.  
  475. ``According to trade diplomats in Geneva, the U.S. is pressing Japan not
  476. to
  477.   abandon the semiconductor deal.  It has suggested that by abandoning
  478. one 
  479.   or two of its elements the Japanese could change their monitoring from
  480. the 
  481.   coherent system the GATT panel found objectionable.''
  482.  
  483. If you work in computer or perhipheral manufacturing, software,
  484. retailing, or  are just a consumer, you should probably write your
  485. congresscritter right now in support of the ruling.  This pact is
  486. crippling all of these industries, as I'm sure I don't have to tell
  487. anyone.  In an election year, they may prove to be subject to pressure,
  488. especially *presidential candidates*.  Just how many high-tech votes are
  489. there ?  Not to mention, with code-cracking hackers and electronic
  490. photo-retouching and other high-tech sabotage, would you want them
  491. voting against you ?  Emphasize your campaign computer cracking skills.
  492. 1/2 :-)
  493.  
  494. Save the whales.  Scrap the pact.  Yay GATT.
  495.  
  496.     Craig Hubley, Unicus Corporation, Toronto, Ont.
  497.     craig@Unicus.COM                (Internet)
  498.     {uunet!mnetor, utzoo!utcsri}!unicus!craig    (dumb uucp)
  499.     mnetor!unicus!craig@uunet.uu.net        (dumb arpa)
  500.  
  501.  
  502. ------------------------------
  503.  
  504. From: osmigo@ut-emx.UUCP
  505. Subject: Re: Faster desktop rebuilding info from MACworld
  506. Date: 30 Mar 88 02:32:24 GMT
  507. Organization: Speech Communication UT Austin
  508.  
  509. In article <13791@uflorida.cis.ufl.EDU> mfi@beach.cis.ufl.edu (Mark
  510. Interrante) writes:
  511. >It is claimed to be MUCH faster ( using B-trees )
  512. >
  513. >Will this be available in the next release of the system software?
  514. >I am tired of my 40mg. disk taking so long to rebuild the desktop.
  515.  
  516. It's supposed to be available from the Appleshare package, although I
  517. presume one doesn't have to purchase the whole thing to get Desktop
  518. Manager. The Mac World article certainly didn't imply it. At any rate, I
  519. used it for a while, and came up with two interesting results.
  520.  
  521. 1. Rebuilding didn't seem much faster except maybe a second or two
  522. clipped off
  523.    when returning to the Finder after quitting. Nothing breathtaking by
  524. any
  525.    means. I'm running 38 megs on a 45 meg HD, Mac SE with 6.0/4.2, and
  526. no
  527.    INIT/CDEV clutter other than Suitcase 1.2.
  528.  
  529. 2. Desktop Manager does something in/with high memory. It kept me from
  530. booting
  531.    up a major game program from a hard disk, giving a message reading,
  532. "There is
  533.    a problem with the way memory is being allocated (27,910 high bytes
  534. used).." 
  535.  
  536. It's possible that improvements in rebuilding speed would be more
  537. apparent with larger storage setups, say, someplace with a couple
  538. hundred megs or something of that nature. In my case, I just trashed the
  539. thing. Didn't amount to a hill of beans.
  540. -- 
  541. <||>---Ron Morgan---<||>-UUCP: {ihnp4,allegra,ut-sally}!emx!osmigo-<||||||||||>
  542. <||>-Univ. of Texas-<||>-------osmigo@emx.UUCP---------------------<||||||||||>
  543. <||>--Austin Texas--<||>-ARPA: osmigo@emx.utexas.edu---------------<||||||||||>
  544. -------------------------------------------------------------------------------
  545.  
  546.  
  547. ------------------------------
  548.  
  549. From: psych@watdcsu.waterloo.edu (R.Crispin - Psychology)
  550. Subject: Re: Need opinions on Orange Micro Macintosh Grappler interface
  551. Date: 29 Mar 88 19:28:15 GMT
  552. Organization: Psychology Department
  553.  
  554. I have used the grappler on a Roland 1212A. This printer is also sold 
  555. under the Panasonic name. It worked well if I set the cable for an 
  556. EPSON FX printer. In portrait mode the print was as good a quality as on
  557. the IWII. But in landscape mode the printing was not as good. It may
  558. have worked better in landscape if I had set "Tall Adjusted". Printing
  559. was much slower overall even in draft mode. This may have been a result
  560. of a setting or something like that. 
  561.  
  562. Other people here have tried the Grappler and were disappointed. It
  563. seems that your printer must support negative linefeeds. If it doesn't
  564. then your pages will shift down. Apperantly Orange Micro is working on a
  565. solution.
  566.  
  567. I have not tried the Grappler LQ cable. It is supposed to work with many
  568. 24 pin printers.
  569. -- 
  570. Richard Crispin
  571. Dept. of Psychology             Bitnet: psych@watdcs 
  572. University of Waterloo          Unix  : psych@watdcsu.waterloo.edu 
  573. Waterloo, Ont.   Canada   N2L 3G1
  574. (519)885-1211 ext 2879
  575.  
  576.  
  577. ------------------------------
  578.  
  579. From: gillies@uiucdcsp.cs.uiuc.edu
  580. Subject: Re: turning off instruction cache on MA
  581. Date: 26 Mar 88 19:25:00 GMT
  582.  
  583.  
  584. The privileged 68020 MOVEC command lets you move data to the CPU control
  585. register.  One particular cache control register (CACR) controls the
  586. cache:
  587.  
  588. Assembler:     MOVEC Rc,Rn
  589.         MOVEC Rn,Rc
  590.  
  591. Description:    Copy the contents of the specified control register (Rc) to
  592. the specified general register or copy the contents of the specified
  593. general register to the specified control register.  This is always a
  594. 32-bit transfer even though the control register may be implemented with
  595. fewer bits.  Unimplementeod bits are read as zeroes.
  596.  
  597. Instruction Format:
  598.  
  599.       15  14  13  12  11  10  9   8   7   6   5   4   3   2   1   0
  600.     +----------------------------------------------------------------+
  601.     | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | dr |
  602.     +---+-----------+------------------------------------------------+
  603.     |A/D|  Register |        Control Register         |
  604.     +----------------------------------------------------------------+
  605.  
  606. Instructions Fields
  607.  
  608. dr field -- specifies the direction of the transfer
  609.   0 control register to general register
  610.   1 general register to control register
  611.  
  612. A/D field - specifies the type of general register
  613.   0 data register
  614.   1 address register
  615.  
  616. Register field - specifies the register number (R0-R7)
  617.  
  618. Control Register field - specifies the control register HEX
  619. --------------------------------
  620.     000    SFC
  621.     001    DFC
  622.     002     CACHE CONTROL REGISTER (CACR)
  623.     800     USP
  624.     801     VBE
  625.     802     CAAR
  626.     803     MSP
  627.     804     ISP
  628.  
  629. The bits of the CACHE CONTROL REGISTER are:
  630.  
  631.     31.....t        8   7   6   5   4   3   2   1   0
  632.     -------------------------------------------------
  633.     0......        0   0   0   0   0   C   CE  F   E
  634.  
  635. E-Enable Cache.  This bit allows the programmer to operate the processor
  636. with the cache disabled.  The cache will remain disable as long as this
  637. bit is cleared.  The bit is automatically cleared whenever the processor
  638. is reset, to enable the cache.
  639.  
  640. F-Freeze cache.  Keeps the cache enabled, but cache misses do not cause
  641. a value in the cache to be replaced.
  642.  
  643. CE-Clear Entry.  Used, with the CAAR register, to clear a particular
  644. entry in the cache.
  645.  
  646. C-Clear Cache.  The Cache clear bit invalidates all entries in the
  647. cache.  A write to the cache control register with this bit set causes
  648. the cache to be cleared.  The bit always reads out as zero.
  649.  
  650.  
  651. ------------------------------
  652.  
  653. From: alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg)
  654. Subject: Re: ShowInit Source or pointer wanted
  655. Date: 29 Mar 88 03:20:00 GMT
  656. Organization: University of California, Santa Cruz; CATS
  657.  
  658. We all now know that Paul Mercer wrote the INIT, but do we all know that
  659. he has done a new version for compatibility with soon-to-exist versions
  660. of the System? The new INIT 31 mechanism is supposed to do something
  661. along these lines, and ShowInit (older versions) is not compatible with
  662. it. This appeared in MacWeek, MacToday, or one of those thingys.
  663. -- 
  664. -------------------------------------------------------------------------------
  665. -  Alexander M. Rosenberg  - INTERNET: alibaba@ucscb.ucsc.edu   - Yoyodyne    -
  666. -  Crown College, UCSC     - UUCP:...!ucbvax!ucscc!ucscb!alibaba- Propulsion  -
  667. -  Santa Cruz, CA 95064    - BITNET:alibaba%ucscb@ucscc.BITNET  - Systems     -
  668. -  (408) 426-8869       - Disclaimer: Nobody is my employer  - :-)         -
  669. -               - so nobody cares what I say.    -          -
  670.  
  671.  
  672. ------------------------------
  673.  
  674. From: jas@cadre.dsl.PITTSBURGH.EDU (Jeffrey A. Sullivan)
  675. Subject: INIT Crashes-- Why?
  676. Date: 29 Mar 88 02:12:19 GMT
  677. Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
  678.  
  679. I wrote a simple INIT that plays a random snd at startuptime.  However,
  680. after playing the sound, but before displaying the icon (with the
  681. showinit resource) it crashes with an id 10.  Why would it crash?  Is
  682. there something that must be done with INITs after they complete?
  683.  
  684. here's the code:
  685.  
  686.     pascal int Count1Resources (ResType);
  687.     pascal Handle Get1IndResource (ResType, int index);
  688.     extern long Time : 0x20C; /* Location of Time in Ticks -- from OSUtil.h
  689. */
  690.  
  691.     main()
  692.     {
  693.  
  694.     Handle thesnd;
  695.     int rand(), numsounds;
  696.     ResType rt = 'snd ';
  697.  
  698.         srand((unsigned int)Time);
  699.  
  700.         numsounds = Count1Resources('snd ');
  701.         thesnd = Get1IndResource(rt, (rnd(numsounds) + 1)); /* Can't be 0 */
  702.         if(thesnd)
  703.             SndPlay(0L,thesnd,TRUE);
  704.         ReleaseResource(thesnd);
  705.  
  706.     }
  707.  
  708. ... That's it!  Why would she crash?
  709. -- 
  710. ..........................................................................
  711. Jeffrey Sullivan              | University of Pittsburgh
  712. jas@cadre.dsl.pittsburgh.edu          | Intelligent Systems Studies Program
  713. jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student
  714.  
  715.  
  716. ------------------------------
  717.  
  718. From: jas@cadre.dsl.PITTSBURGH.EDU (Jeffrey A. Sullivan)
  719. Subject: When to draw rect around List in DLOG
  720. Date: 29 Mar 88 07:01:18 GMT
  721. Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
  722.  
  723. I am maintaining a List (ala list manager) in a dialog using TransSkel. 
  724. The list does not have arectangle around it, so you have to draw one in.
  725.  The question is :  When exactly should I be drawing it in?  During
  726. updateEvent, ActivateEvent, before calling the SkelDialog procedure, or
  727. what?
  728.  
  729. jas
  730. -- 
  731. ..........................................................................
  732. Jeffrey Sullivan              | University of Pittsburgh
  733. jas@cadre.dsl.pittsburgh.edu          | Intelligent Systems Studies Program
  734. jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student
  735.  
  736.  
  737. ------------------------------
  738.  
  739. From: llad@ur-tut (Dennis Venable)
  740. Subject: Monitoring idle time
  741. Date: 29 Mar 88 20:30:22 GMT
  742. Organization: Univ. of Rochester, Computing Center
  743.  
  744. Greetings  mac programmers!
  745.  
  746. Can someone out there tell me how to go about creating a cdev or init
  747. that can monitor idle time?  I am interested in writing my own screen
  748. blanker  (something like Pyro!).  I already have the graphics routine
  749. written, but need to know how to monitor idle time and activate the
  750. blanking code.
  751.  
  752. Any help would be greatly appreciated (and would gain you a neat little
  753. screen blanker when I get it working).
  754. -- 
  755. Thanks!
  756. /Dennis L. Venable
  757.  
  758. E-mail responses to:
  759. UUCP: ...!rochester!ur-tut!llad
  760. ARPA: llad@tut.cc.rochester.edu
  761.  
  762. ------------------------------
  763.  
  764. End of Usenet Mac Digest
  765. ************************
  766.  
  767. -------
  768.